-
-
Notifications
You must be signed in to change notification settings - Fork 689
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
DOC: Fix unbalanced grouping commands Doxygen warnings #3805
DOC: Fix unbalanced grouping commands Doxygen warnings #3805
Conversation
I checked the However, The pattern that we require to solve the Doxygen issues (that ITK/Utilities/Doxygen/itkgroup.pl Line 2 in 047fa69
@hjmjohnson @thewtex @dzenanz any suggestion on how we could work around this without having to recur to turning it on/off on each of these lines? The other hypothesis is that the variable values in this condition ITK/Utilities/Doxygen/itkgroup.pl Line 68 in 047fa69
or the condition itself should be modified. Maybe the Another possibility would be to submit only the changes that make |
It feels like we should update clang format style to allow the changes proposed here. I am not sure whether that can accomplish it. |
I am running the build script with doxygen updated to 1.9.5, so we don't have to wait until tomorrow to see the updated output. |
Looks like there may be a way: |
The second suggestion would require us to move to a newer |
Doxygen 1.9.5 produces 100+ new warnings of style: Generating docDocumentation/Doxygen/NeighborhoodIterators.dox:96: warning: Unexpected token TK_HTMLTAG found as part of a title section. All warnings here. @jhlegarreta should we keep this version? |
😓 I would keep the old version for now then. I would upgrade to the newer version once we have managed to fix the current warnings (which are still present in the new version). |
I just reverted doxygen to 1.8.16. |
Looks like our @hjmjohnson Do you happen to know the |
Adding /** Sets the value of the image buffer at the current index value to the
* specified value. */
void
SetPixelValue(InternalPixelType * const imageBufferPointer, const PixelType & pixelValue) const noexcept
{
m_NeighborhoodAccessor.Set(imageBufferPointer + m_PixelIndexValue, pixelValue);
}
}; // end of class This is an excerpt from ITK\Modules\Core\Common\include\itkBufferedImageNeighborhoodPixelAccessPolicy.h, near the end. |
#3805 (comment) OK, I was thinking about the namespace ending. I can do this, but I do not think we are willing to have this as a long-term solution. @thewtex @blowekamp @hjmjohnson any thoughts? |
Another approach could replace itkdoxygen.pl with a Python script 🐍 |
The problem is rather clang-format disliking the insertion of a blank line before the end of class closing bracket line without the latter having an inline comment. |
Can we remove the insertion of the blank line in the Python script migration? |
It should rather be introduced: I do not have the bandwidth to translate the script into Python. Alternatives:
|
Do you think the below approach plugged right after ITK/Utilities/Doxygen/itkgroup.pl Line 67 in 23da3df
can be made to work?
so that we can get the result in #3805 (comment) without needing to add @thewtex @tbirdso maybe one of you is skilled at Perl to give that a try? Thanks. |
I still think that moving to latest stable |
Would that fix the issue here ? Isn't the config itself, rather than the clang-format version, what might help ? |
The current version ignores (does not support) the config setting we need. As per this SO answer, we need We already have MaxEmptyLinesToKeep: 2 in our config, and that is not enough. |
#3805 (comment) OK, then +100 for upgrading. @hjmjohnson ? |
@jhlegarreta I trust the judgment of those who have invested time into this PR. I will not have time to review it carefully. |
Cross-referencing InsightSoftwareConsortium/ITKClangFormatLinterAction#3. |
4293d83
to
dba1d67
Compare
Fix unbalanced grouping commands Doxygen warnings. Fixes: ``` Modules/Core/Common/include/itkAutoPointer.h:261: warning: unbalanced grouping commands ``` warnings across classes. The warning is raised when the Utilities/Doxygen/itkdoxygen.pl Doxygen Perl script processes the files at issue and starts a `/**@{` block that gets interrupted by an unexpected symbol (e.g. a brace) without being previously closed with the corresponding `/**@}*/` ending token. Raised for example in: https://open.cdash.org/viewBuildError.php?type=1&buildid=8344134
dba1d67
to
a416917
Compare
Rebased |
This does reduce number of |
So I have revisited the comments here and the related issue (#3654):
As for the discussion in issue #3654:
So, these are my thoughts:
My vote is for 1 for the sake of our mental well-being (which includes seeing less noise in the dashboard). But I am happy if others have the bandwidth to look into the |
I updated Doxygen on blaster to latest (1.13.2). Merging this PR sounds like a low-risk step in the right direction. Let's give people a few days to review (or maybe tackle option 2). |
With the Still I see more in that approach than by means of using a script to convert the code based on some special white space in the code (as this probably will break again in the future / miss some special cases.). The note I made in #4161:
is probably still quite valid as it will be quite a bit of work in the already over stretched workloads. |
I am not in favor of this commit. Adding "magic" white space lines to avoid warnings is not a manageable and robust solution. The purpose to migrating the script to Python was that no one know Perl well enough to make the fix in the script. Now what the "grouping" script is in python it should be debuggable and fixable by the community. |
Doxygen warning log is swamped by |
Re: #3805 (comment)
Yes.
I am open to any solution that is more robust than this PR. I think I made this clear. I do not have the bandwidth to try all avenues. Re: #3805 (comment)
There was a guess in #3805 (comment). Feel free to try. |
I saw that in the output e.g. the mainpage was empty and its information should have been retrieved from the Proposed patch: diff.patch |
At all, in #4161 there were 2 suggestions to bypass the problems of the "grouping" script
subsequently (no difference for doxygen) the used command identifier: What is the consensus to use? |
I created PR #5225 with the proposed changes. |
Option 2 ( As backslash gets so much use already in C++, CMake, Python and elsewhere, maybe |
Fix unbalanced grouping commands Doxygen warnings.
Fixes:
warnings across classes.
The warning is raised when the
Utilities/Doxygen/itkdoxygen.pl
Doxygen Perl script processes the files at issue and starts a
/**@{
block that gets interrupted by an unexpected symbol (e.g. a brace) without being previously closed with the corresponding/**@}*/
ending token.Raised for example in:
https://open.cdash.org/viewBuildError.php?type=1&buildid=8344134
PR Checklist